import logging

def log_set():
    logging.basicConfig(filename="dianyinglog.txt", filemode="a+", format="%(message)s-%(process)d-%(threadName)s-%(levelno)s", level=logging.DEBUG)